package com.wugh.fast.kernel.core.props;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 说明: mapper增强配置
 * <pre>
 *
 * </pre>
 *
 * @author wugh
 * @date 2019-01-25 09:32
 */
@Data
@ConfigurationProperties(prefix = MapperProperties.PROPERTY_PREFIX)
public class MapperProperties {
    public static final String PROPERTY_PREFIX = FastProperties.PROPERTY_PREFIX + ".mapper";
    /**
     * 是否打开mapper增强配置
     */
    private Boolean enable = false;
    /**
     * 拆分批量插入
     */
    private Boolean subInsertList = true;
    /**
     * 批量插入步伐
     */
    private Integer subInsertListStep = 1000;
    /**
     * schema是否自动lower处理
     */
    private Boolean lowerTable = false;
    /**
     * 增强mapper使用的插件
     */
    private String[] pluginClasses = new String[]{"com.wugh.fast.module.mapper.interceptor.plugin.impl.IsDeletedPlugin", "com.wugh.fast.module.mapper.interceptor.plugin.impl.GMTCreateAndGMTModifiedPlugin"};

}
